<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>邀请码管理</title>
<script>
var baseUrl = "<?php echo $this->baseUrl;?>";
</script>
<link href="<?php echo $this->baseUrl;?>/admincss/mstyle.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl;?>/admincss/thickbox.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js" /></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/js/meetcp.js" /></script>
</head>
<body>
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="<?php echo $this->url($this->baseUrl, 'invite', 'search', 'mid='.$this->mid);?>">
<input type="hidden" name="mid" value="<?php echo $this->mid;?>" />
  <table align="center" border="1" class="tableA" >
    <tr>
      <td colspan="3" align="center">查询邀请码</td>
    </tr>
    <tr>
      <td>电子邮件：</td>
      <td><input name="email" type="text" id="file" size="30" value="<?php echo $this->email;?>"/></td>
      <td><input type="submit" name="button" id="button" value="查询" class="btn_submit"/></td>
    </tr>
  </table>
</form>

<table class="tableA" width="100%" border="1">
  <tr>
    <td width="5%" nowrap="nowrap">编号</td>
    <td width="5%" nowrap="nowrap">邮件地址</td>
    <td width="6%" nowrap="nowrap">中文姓名</td>
    <td width="13%" nowrap="nowrap">中文头衔</td>
    <td width="6%" nowrap="nowrap">英文姓名</td>
    <td width="13%" nowrap="nowrap">英文头衔</td>
    <td width="15%" nowrap="nowrap">邀请码</td>
    <td width="14%" nowrap="nowrap">生成时间</td>
    <td width="12%" nowrap="nowrap">使用</td>
  </tr>
<?php
$ext = '&mid=' . $this->mid;
foreach ($this->list as $v){
$delurl=$this->url($this->baseUrl, 'invite', 'del', 'codeid='.$v['codeid'] . $ext);
$use = $v['uid'] ==0?"未使用":"已注册";
print <<<EOT
  <tr>
    <td nowrap="nowrap">{$v['codeid']}</td>
    <td nowrap="nowrap">{$v['email']}</td>
    <td nowrap="nowrap">{$v['name']}</td>
    <td nowrap="nowrap">{$v['ncall']}</td>
    <td nowrap="nowrap">{$v['enname']}</td>
    <td nowrap="nowrap">{$v['encall']}</td>
    <td nowrap="nowrap">{$v['code']}</td>
    <td nowrap="nowrap">{$v['createtime']}</td>
    <td nowrap="nowrap">{$use}</td>
  </tr>
EOT;
}
?>
</table>
</body>
</html>
